package cn.tb.org.domain;

import cn.tb.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

   private String sn;

   private String name;

   private String dirPath;

   private Integer state;

   private Long manager_id;

   private Long parent_id;

   private Long shop_id;

   //部门管理员
   private Employee manger;

   //上级部门
   private Department parent;

   @JsonInclude(JsonInclude.Include.NON_EMPTY)  //集合不为空才返回
   private List<Department> children = new ArrayList<>();
}
